var KOC = require("koc.common.utils");

var Mysql_Helper = null;
var DBName = null;

module.exports = {
    //region 初始化
    Init: function (sql_helper, dbname) {
        if (!Mysql_Helper) {
            Mysql_Helper = sql_helper;
            DBName = dbname;
        }
        return this;
    },
    //endregion
    //region Order_No_Manage:单据号管理
    Order_No_Manage: {
        Info: function (Order_Type, callback) {
            Mysql_Helper.ExecuteRow(DBName, "CALL `procOrderNoManage`(:Order_Type);", {Order_Type: Order_Type}, callback);
        }
    }
    //endregion
};